package framework.managers;

import android.util.Log;

public class FPSManager {

	private static long startTime = System.nanoTime(); 
    private static int frames = 0; 
     
    public static void logFPS() { 
        frames++; 
        if(System.nanoTime() - startTime >= 1000000000) { 
            Log.d("FPSCounter", "fps: " + frames); 
            frames = 0; 
            startTime = System.nanoTime(); 
        } 
    } 
	
}
